"use strict";
// 校验方法大全
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkUserName = exports.checkPhone = exports.checkEmail = void 0;
/** 校验邮箱 */
var checkEmail = function (email) { return /^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/.test(email); };
exports.checkEmail = checkEmail;
/** 校验手机号 */
var checkPhone = function (phone) {
    phone = String(phone);
    return /^1(3|4|5|6|7|8|9)[0-9]{9}$/.test(phone);
};
exports.checkPhone = checkPhone;
/** 校验姓名 */
var checkUserName = function (name) { return /^[\u4E00-\u9FA5]{2,4}$/.test(name); };
exports.checkUserName = checkUserName;
